package cn.rubintry.bug.hunting.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import cn.rubintry.bug.hunting.pojo.HomeBackgroundModel

@Dao
interface HomeBackgroundDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(vararg datas: HomeBackgroundModel)

    @Query("SELECT * FROM HomeBackground")
    fun selectAll() : List<HomeBackgroundModel>
}